#!/bin/bash
if [ -d "${AAA_PATH}" ]; then 
/usr/bin/curl -o /dev/null --retry 1 --max-time 5 -w %{http_code} -s "http://127.0.0.1:$1/aaa/appstatus" | grep -c 200
fi